/**
 * 
 */
$(document).ready(function(){
     //$("#errorMessage").addClass("forErrorMessage");
     //$("#errorPasswordMessage").addClass("forErrorMessage");
});

/* Task  공통 상수 
 * 	public final static int TASK_LIST_NONE = 0; 
	public final static int TASK_LIST_IN_PROGRESS = 1;
	public final static int TASK_LIST_COMPLETED = 2;
	public final static int TASK_LIST_DELAYED = 3;
	public final static int TASK_LIST_PLANNED = 4;
	public final static int TASK_LIST_RISK = 5;
 */
$(function(){
	$("#inProgress").bind("click", function(){
		filterForm = document.filterForm;
		filterForm.action = "task.jsp";
		filterForm.taskType.value = 1;
		filterForm.submit();
	});
});

$(function(){
	$("#completed").bind("click", function(){
		filterForm = document.filterForm;
		filterForm.action = "task.jsp";
		filterForm.taskType.value = 2;
		filterForm.submit();
	});
});

$(function(){
	$("#delayed").bind("click", function(){
		filterForm = document.filterForm;
		filterForm.action = "task.jsp";
		filterForm.taskType.value = 3;
		filterForm.submit();
	});
});

$(function(){
	$("#planned").bind("click", function(){
		filterForm = document.filterForm;
		filterForm.action = "task.jsp";
		filterForm.taskType.value = 4;
		filterForm.submit();
	});
});

$(function(){
	$("#risk").bind("click", function(){
		filterForm = document.filterForm;
		filterForm.action = "task.jsp";
		filterForm.taskType.value = 5;
		filterForm.submit();
	});
});

$(function(){
	$("#summary").bind("click", function(){
		filterForm = document.filterForm;
		filterForm.action = "task.jsp";
		filterForm.submit();
	});
});

$(function(){
	$("#backButton").bind("click", function(){
		var url = "menu.jsp";
		window.history.back();
	});
});

$(function(){
	$("#homeButton").bind("click", function(){
		var url = "menu.jsp";
		document.location = "menu.jsp";		
	});
});
